{% extends 'AdminBundle:base:index.html.twig' %}
    {% block title %}api日志{% endblock %}
    {% block description %}显示 api日志{% endblock %}
    {% block css %}
        <link rel="stylesheet" href="/admin/assets/css/bootstrap-duallistbox.min.css"/>
    {% endblock %}

    {% block head %}{{ parent() }}{% endblock %}

    {% block breadcrumbs %}
        {% embed "AdminBundle:base:breadcrumbs.html.twig" %}
            {% block breadcrumb %}
                <li><a href="{{ path('logapi_index') }}">api日志</a></li>
                <li><a href="#">新建</a></li>
                <li><a href="#">编辑</a></li>
                <li class="active">查看</li>
            {% endblock %}
        {% endembed %}
    {% endblock %}


    {% block content %}
        <table class="table  table-bordered table-hover">
            <tbody>
            <tr>
                <th>Name</th>
                <td>{{ logApi.name }}</td>
            </tr>
            <tr>
                <th>Uri</th>
                <td>{{ logApi.uri }}</td>
            </tr>
            <tr>
                <th>Action</th>
                <td>{{ logApi.action}}</td>
            </tr>
            <tr>
                <th>Cotent</th>
                <td>{{ logApi.content }}</td>
            </tr>
            <tr>
                <th>Creator</th>
                <td>{{ logApi.creator }}</td>
            </tr>
            <tr>
                <th>Ip</th>
                <td>{{ logApi.ip }}</td>
            </tr>
            <tr>
                <th>Ctime</th>
                <td>{% if logApi.ctime %}{{ logApi.ctime|date('Y-m-d H:i:s') }}{% endif %}</td>
            </tr>
            <tr>
                <th>Id</th>
                <td>{{ logApi.id }}</td>
            </tr>
            </tbody>
        </table>

    {% endblock %}
